package BC123_小乐乐找最大数;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int maxNum = 0;

        while (sc.hasNext()){
            int pre = sc.nextInt();
            if (pre > maxNum){
                maxNum = pre;
            }
        }
        System.out.println(maxNum);
    }
}
